<?php
 
class Comment extends CI_Controller{
 
	function  __construct() {
	 
		parent::__construct();
		$this->load->helper('url');
	}
 
	function create(){
 
		if($_POST):
	 
			// do database stuff here to save the comment.
	 
			// return false if db failed
	 
			// else
	 
			return true;
	 
		endif;
 
	}
	
	public function verifyUser()	{
		$userName =  $_POST['userName'];
		$userPassword =  $_POST['userPassword'];
		if($userName != NULL && $userPassword !=NULL){
			$status = array("STATUS"=>"true");	
		} else { $status = array("STATUS"=>"false"); }
		echo json_encode ($status) ;	
	}
 
}
?>